package com.wwwarehouse.financialcenter.utils;


import com.wwwarehouse.financialcenter.eventbus.Event;

import de.greenrobot.event.EventBus;

/**
 * @author Joseph on 2017/10/28.
 *         <p/>
 */

public class EventBusUtil {
    public static void register(Object subscriber) {
        EventBus.getDefault().register(subscriber);
    }

    public static void unregister(Object subscriber) {
        EventBus.getDefault().unregister(subscriber);
    }

    public static void sendEvent(Event event) {
        EventBus.getDefault().post(event);
    }
}
